//
//  DataBaseSImple.h
//  XMLDemo
//
//  Created by qianfeng on 15/1/4.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "YCPowerModel.h"
@class YCHeroModel;

@interface DataBaseSimple : NSObject

//单例
+ (id)shareInstance;

//插入
- (void)insertIntoDB:(YCPowerModel *)model;
- (void)insertIntoDBWithHero:(YCHeroModel *)model withIsSuccess:(void (^)(BOOL isSuccess))success;

//查询
- (NSMutableArray *)selectFromDB;
- (NSMutableArray *)selectFromDBWithHero:(NSString *)cnName;
- (NSMutableArray *)selectFromDBWithAllFavHero;


//删除
- (void)deleFromDBWithPower:(NSInteger)zdl;
- (void)deleFromDBWithHero:(NSString *)name withIsSuccess:(void (^)(BOOL isSuccess))success;

@end
